﻿#region
/*******************************************************************************
** File Name:		    AdminUserGroupRepository.cs
** Creator:		        chao.jiang 
** EMail:               chao.jiang 
** Create date:	        
** Latest Modifier:
** Latest Modify date:
** Description:		    
** Modify History:
**
** Code Review:
**
** Version number:       1.0.0
*********************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using Phoenix.Entity;
using Phoenix.Respository;
using IBatisNet.DataMapper;
using Phoenix.Data.IBatis;

namespace Phoenix.IBatisRepository
{
    public class AdminUserGroupRepository : BaseIBatisDao,IAdminUserGroup 
    {
    
		#region  Auto Generation

        public AdminUserGroupRepository()
            : base("/Config/IBatis/86TCMap.Config")
        {

        }
        		
        public void AddAdminUserGroup(EAdminUserGroup entity)
        {
			string stmtId = "AdminUserGroupMap.InsertAdminUserGroup";
			base.SqlMapper.Insert(stmtId, entity);
        }
        
		public  EAdminUserGroup GetByAdminUserGroupID (System.Int32 adminUserGroupID)
        {
			string stmtId = "AdminUserGroupMap.SelectByAdminUserGroupID";
			return base.SqlMapper.QueryForObject<EAdminUserGroup>(stmtId, adminUserGroupID);
        }
        
        public  void DeleteByAdminUserGroupID (System.Int32 adminUserGroupID)
        {
			string stmtId = "AdminUserGroupMap.DeleteByAdminUserGroupID";
			base.SqlMapper.Update(stmtId, adminUserGroupID);
        }
        
        public  void UpdateByAdminUserGroupID (EAdminUserGroup entity)
        {
			string stmtId = "AdminUserGroupMap.UpdateByAdminUserGroupID";
			base.SqlMapper.Update(stmtId, entity);
        }


		#endregion
    }
}

